var tempI = 1;
var tempF = 1;
// 允许上传的图片类型
var allowTypes = ['image/jpg', 'image/jpeg', 'image/png', 'image/gif'];
// 1024KB，也就是 1MB
var maxSize = 1024 * 1024 * 5;
// 图片最大宽度
var maxWidth = 300;
// 最大上传图片数量
var maxCount = 1;
//上传文件
var $uploaderFiles = $('.weui_uploader_files');
// 删除文件按钮
var $delBtn = $('.weui-icon-delete');
// 上传的图片地址
var URL = '';
// 图片地址数组
var URLARR = [];
$(function () {
    var result = Model.user.authInfo();
    if (!sessionStorage.getItem('hmdj_stopError')) {
        sessionStorage.setItem('hmdj_stopError', true);
    } else {
        if (result.code) {
            Common.fn.formatOutput(result, 'release_product.html');
            return false;
        }
    }
    $('.input-name').val(result.data.name);
    $('.input-phone').val(result.data.phone);
    $('.input-goodat').val(result.data.service);
    $('.input-company').val(result.data.company);
    if('license1' in result.data) {
        $('.weui_uploader_files').append('<li class="weui_uploader_file" style="background-image:url(' + result.data.license1 + ')"></li>')
    }
    if ('license2' in result.data) {
		$('.weui_uploader_files').append('<li class="weui_uploader_file" style="background-image:url(' + result.data.license2 + ')"></li>')
    }
    if ('license3' in result.data) {
		$('.weui_uploader_files').append('<li class="weui_uploader_file" style="background-image:url(' + result.data.license3 + ')"></li>')
	}
});